import request from '@/utils/request'
/**
 * 封装获取员工信息列表
 * @param {*} params
 * @returns
 */
export const getEmployeeListAPI = (params) => request.get('/sys/user', { params })
/**
 * 新增-员工
 * @param {*} data
 * @returns
 */
export const addEmployeeAPI = (data) => {
  return request.post('/sys/user', data)
}
/**
 * 获取员工详情
 * @param {*} id
 * @returns
 */
export const getEmployeeDetailAPI = (id) => {
  return request(`/sys/user/${id}`)
}
/**
 * 修改员工
 * @param {*} id
 * @returns
 */

export const changeEmployeeAPI = (data) => {
  return request.put(`/sys/user/${data.id}`, data)
}
